package com.cdeledu.happensbefore;

public class InterruptDemo {

	private static int count = 0;
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(() -> {
            // t1 线程可以看到被中断前的数据
            System.out.println(count);
        });
        t1.start();
        //Thread.sleep(1000);
        count = 25;
        // t1 线程被中断
        t1.interrupt();
    }
	
}
